home *** CD-ROM | disk | FTP | other *** search
- function traguardi()
- {
- var a;
- var i;
- var cont = 0;
- i = 0;
- while(i < this.n.length)
- {
- var name = "oggetto" + i;
- if(i > this.tasto)
- {
- this.traguardo[i] = (i + this.n[this.tasto]) * 11 + 1;
- a = cont;
- while(a < cont + this.n[i])
- {
- this.traguardof[a] = this.traguardo[i];
- a++;
- }
- cont = a;
- }
- else if(i < this.tasto)
- {
- this.traguardo[i] = this.inizio[i];
- a = cont;
- while(a < cont + this.n[i])
- {
- this.traguardof[a] = this.traguardo[i];
- a++;
- }
- cont = a;
- }
- else if(i == this.tasto)
- {
- this.traguardo[i] = this.inizio[i];
- a = cont;
- while(a < cont + this.n[i])
- {
- if(a == cont)
- {
- var prima = a - 1;
- }
- this.traguardof[a] = 11 * (a - prima) + this.traguardo[i];
- a++;
- }
- cont = a;
- }
- i++;
- }
- }
- function spegni()
- {
- i = 0;
- while(i < this.n.length)
- {
- this["oggetto" + i].gotoAndStop(1);
- i++;
- }
- this.spegni1();
- }
- function spegni1()
- {
- i = 0;
- while(i < this.fields.length)
- {
- this["oggettonuovo" + i].gotoAndStop(1);
- i++;
- }
- }
- function chiudi()
- {
- var cont = 0;
- var a;
- i = 0;
- while(i < this.n.length)
- {
- this["oggetto" + i].gotoAndStop(1);
- this.traguardo[i] = this.inizio[i];
- a = cont;
- while(a < cont + this.n[i])
- {
- this.traguardof[a] = this.traguardo[i];
- this["oggettonuovo" + a].gotoAndStop(1);
- a++;
- }
- cont = a;
- i++;
- }
- }
- function init()
- {
- for(var sName in this)
- {
- if(this[sName]._parent == this && sName != "clip" && sName != "clip1")
- {
- this[sName].removeMovieClip();
- }
- }
- this.traguardo = new Array(this.n.length);
- this.traguardof = new Array(this.linkArr.length);
- this.inizio = new Array(this.n.length);
- clip._visible = false;
- clip1._visible = false;
- if((this.titoli.length + this.fields.length) * 11 > 304)
- {
- this._yscale = 304 / ((this.titoli.length + this.fields.length) * 11) * 100;
- }
- else
- {
- this._yscale = 105;
- }
- var cont = 0;
- var i = 0;
- while(i < this.n.length)
- {
- var name = "oggetto" + i;
- this.clip.duplicateMovieClip(name,++this.depth + 100);
- this.traguardo[i] = i * 11 + 1;
- this.inizio[i] = i * 11 + 1;
- this[name].tasto = i;
- this[name]._y = i * 11 + 1;
- this[name].title = this.titoli[i];
- a = cont;
- while(a < cont + this.n[i])
- {
- var name1 = "oggettonuovo" + a;
- this.clip1.duplicateMovieClip(name1,++this.depth);
- this.traguardof[a] = i * 11 + 1;
- this[name1]._y = this.traguardo[i];
- this[name1].field = a;
- this[name1].url = this.linkArr[a].url;
- this[name1].title = this.linkArr[a].title;
- this[name1].fileType = this.linkArr[a].fileType;
- a++;
- }
- cont = a;
- i++;
- }
- this.tasto = 0;
- this.traguardi();
- this.spegni();
- this.oggetto0.gotoAndStop(5);
- }
-